package com.source.lightfowl.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author: xcy
 * @Date:Create：in 2020/3/16 21:42
 * @Description: 脚标机发放实体类
 */
@Data
public class BarcodeMachineGrantVO {

    private int id;  //
    private int barcodeMachineId; //脚标机id
    private int stallsId; //档口id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date grantDate;  //发放时间 需要前端传递参数赋值
    //private int grantPersonId; //发放人id
    // private int receivePersonId; //领取人id
    private String grantPersonId; //发放人id
    private String receivePersonId; //领取人id
    private double deposit; //押金
    private String agreementNumber; //协议编号
    private String createBy; //创建者
    private LocalDateTime createTime; //创建时间 自动赋值

    //优化
    private String deliverName;  //发放人姓名
    private String recyclingName; //领取人
    //添加一个销售/租借字段
    private String status; //脚标机状态 0：销售 1：租借

    private String stallsName;
    private String createName;


}
